home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Workspace / Briefcase / Source / MultApp.h < prev    next >
Text File  |  1992-08-10  |  3KB  |  97 lines

  1. #import <objc/Object.h>
  2. #import "Global.h"
  3.  
  4. /* Version 0.9b            Apr-19-92        First Public Release    */
  5. /* Version 0.95b        Jun-10-92        Minor File path fixes    */
  6. /* Version 1.0b            Aug-10-92        Minor Bug Fixes            */
  7.  
  8. /* The various shared objects and panels are declared as instance variables for    */
  9. /* several reasons:  first, you can draw connections in IB that way; second,     */
  10. /* it is possible that some other object might want to manipulate these objects    */
  11. /* for their own purposes.                                                        */
  12.  
  13. @interface MultApp: Object
  14. {
  15.     BOOL    haveOpenedDocument;            /* whether we have opened a document yet */
  16.     id         plpAccessory;                /* accessory view in the page layout panel */
  17.     id         infoPanel;                    /* the Info Panel */
  18.     id        prefPanel;                    /* the Preferences panel */
  19.     id        helpPanel;                    /* a simple Help Panel (until 3.0!) */
  20.     id        pageMargin;                    /* augmented PageLayout object */
  21.     id        stringSet;                    /* StringSet for localization */
  22.     char    launchDir[MAXPATHLEN+1];    /* the app wrapper directory */
  23.     char    defaultDir[MAXPATHLEN+1];    /* the default directory */
  24.     /* Defaults for the application */
  25.     BOOL    saveAll;                    /* save all upon closing */
  26.     BOOL    dumpAll;                    /* ignore dirty bits upon closing */
  27. }
  28.  
  29. /* Factory Methods */
  30.  
  31. + initialize;
  32. + setDocClass:newDoc;
  33. + docClass;
  34.  
  35. /* Public Methods */
  36.  
  37. - currentDocument;
  38. - setDefaultDir:(const char *)dir;
  39. - (const char *)currentDirectory;
  40. - (const char *)launchDirectory;
  41.  
  42. - setupPageLayout:(float)lm :(float)rm :(float)tm :(float)bm; 
  43.  
  44. - (BOOL)saveAll;
  45. - setSaveAll:(BOOL)value;
  46. - (BOOL)dumpAll;
  47. - setDumpAll:(BOOL)value;
  48.  
  49. /* Shared Panels Target/Action */
  50.  
  51. - info:sender;
  52. - help:sender;
  53. - pref:sender;
  54. - saveAsPanel:sender;
  55. - pageLayout:sender;
  56. - stringSet:sender;
  57.  
  58. /* Target/Action Methods */
  59.  
  60. - new:sender;
  61. - open:sender;
  62. - saveAll:sender;
  63. - print:sender;
  64. - mailToMe:sender;
  65.  
  66. /* Menu updating method */
  67.  
  68. - (BOOL)menuItemUpdate:menuCell;
  69. - (BOOL)validateCommand:menuCell;
  70.  
  71. /* Application Delegate Methods */
  72.  
  73. - appWillInit:sender;
  74. - appWillTerminate:sender;
  75. - appDidInit:sender;
  76. - (int)appOpenFile:(const char *)path type:(const char *)type;
  77. - (BOOL) appAcceptsAnotherFile:sender;
  78. - (int)app:sender unmounting:(const char *)fullPath;
  79.  
  80. /* Listener Methods */
  81.  
  82. // Drag & Drop
  83. - (int)iconEntered:(int)windowNum at:(double)x :(double)y iconWindow:(int)iconWindowNum iconX:(double)iconX iconY:(double)iconY iconWidth:(double)iconWidth iconHeight:(double)iconHeight pathList:(const char *)pathList;
  84. - (int)iconExitedAt:(double)x :(double)y;
  85. - (int)iconReleasedAt:(double)x :(double)y ok:(int *)flag;
  86.  
  87. //File Manipulation
  88. - (int)msgDirectory:(char *const *)fullPath ok:(int *)flag;
  89. - (int)msgFile:(char *const *)fullPath ok:(int *)flag;
  90.  
  91. // Misc
  92. - (int)msgPrint:(const char *)fullPath ok:(int *)flag;
  93. - (int)msgVersion:(char *const *)aString ok:(int *)flag;
  94. - (int)msgQuit:(int *)flag;
  95.  
  96. @end
  97.